package com.transaction.demo.shop.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 描述：预下单
 * 作者：马庆智
 * 日期：2023/04/27 17:22:10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("预下单请求vo")
public class BuyReqVo implements Serializable {

    @ApiModelProperty(value = "商品名称", required = true)
    @NotBlank(message = "productName商品名称不能为空")
    private String productName;

    @ApiModelProperty(value = "订单金额", required = true)
    @NotBlank(message = "price订单金额不能为空")
    private String price;

    @ApiModelProperty("支付备注")
    private String remark;

}